#Requires AutoHotkey v2.0

; 创建窗口
Gui, New, +Resize
Gui, Font, s10, Arial
Gui, Add, Checkbox, vFillColor, 填充色
Gui, Add, Checkbox, vType, 类型
Gui, Add, Checkbox, vCurrentLayer, 仅限当前图层
Gui, Add, Checkbox, vExcludeContainer, 排除容器群组
Gui, Add, Checkbox, vWheelColor, 轮廓色
Gui, Add, Checkbox, vWheelDetail, 轮廓细
Gui, Add, Checkbox, vFont, 字体
Gui, Add, Checkbox, vSize, 大小
Gui, Add, Checkbox, vSizeToSelect, 尺寸 -> 选择
Gui, Add, Checkbox, vSizeToSelect2, 尺寸 -> 选择
Gui, Add, Checkbox, vGroupCount, 群组数
Gui, Add, Checkbox, vBezierCurve, 曲线节点数
Gui, Add, Text, , 高:
Gui, Add, Edit, w50 vHeight, 0.5
Gui, Add, Text, , 宽:
Gui, Add, Edit, w50 vWidth, 0.5
Gui, Add, Checkbox, vLabelName, 标记名称
Gui, Add, Button, gSelectSame, 选择相同
Gui, Add, Button, gReverse, 反选
Gui, Add, Button, gContainerFrame, 容器框
Gui, Add, Button, gSelectFrame, 选择框

; 第二行按钮
Gui, Add, Button, gReplaceColor, 替换色
Gui, Add, Button, gReplaceSame, 替换为（不变）
Gui, Add, Button, gOneKeyBackground, 一键加背景
Gui, Add, Button, gChangeLabel, 换色标记

; 底部按钮
Gui, Add, Button, gClear, 清
Gui, Add, Button, gSetOldObject, 设为旧对象
Gui, Add, Button, gSetNewObject, 设为新对象
Gui, Add, Button, gStartMark, 开始着标
Gui, Add, Button, gReplaceSelection, 换掉选择
Gui, Add, Checkbox, vKeepRatio, 保持比例

; 设置窗口大小和标题
Gui, Show, w400 h400, 选择相同

; 按钮处理函数
SelectSame() {
    MsgBox "选择相同按钮被点击"
}

Reverse() {
    MsgBox "反选按钮被点击"
}

ContainerFrame() {
    MsgBox "容器框按钮被点击"
}

SelectFrame() {
    MsgBox "选择框按钮被点击"
}

ReplaceColor() {
    MsgBox "替换色按钮被点击"
}

ReplaceSame() {
    MsgBox "替换为（不变）按钮被点击"
}

OneKeyBackground() {
    MsgBox "一键加背景按钮被点击"
}

ChangeLabel() {
    MsgBox "换色标记按钮被点击"
}

Clear() {
    MsgBox "清按钮被点击"
}

SetOldObject() {
    MsgBox "设为旧对象按钮被点击"
}

SetNewObject() {
    MsgBox "设为新对象按钮被点击"
}

StartMark() {
    MsgBox "开始着标按钮被点击"
}

ReplaceSelection() {
    MsgBox "换掉选择按钮被点击"
}

; 保持脚本运行
Return

GuiClose() {
    ExitApp
}
